<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%--
	auth : Conner
	date : 2012-09-06
	desc : 权限明细
--%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<jsp:include page="/admin/common/css/style_sub.jsp"></jsp:include>
<script type="text/javascript" src="<%=basePath%>js/public.js"></script>
<link rel="stylesheet" type="text/css" href="<%=basePath%>js/lib/validation/css/livevalidation.css" />
<script type="text/javascript" src="<%=basePath%>js/lib/validation/livevalidation.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/jquery/jquery-1.7.1.min.js"></script>
<script language="javascript">
</script>
</head>
<body>
	<div class="title">查看权限明细</div>
		<div class="editorTab">
			<table>
				<tbody>
					<tr>
						<th>所属子系统</th>
						<td>${right.sub_name }</td>
						<th>所属父节点</th>
						<td>${right.parent_name }</td>
					</tr>
					<tr>
						<th>菜单名称</th>
						<td>${right.name }</td>
						<th>同级排序号</th>
						<td>${right.order_ }</td>
					</tr>
					<tr>
						<th>限制访问</th>
						<td>
							<s:if test="%{right.limit_access == 1}">是</s:if>
							<s:if test="%{right.limit_access == 2}">否</s:if>
						</td>
						<th>外部访问</th>
						<td>
							<s:if test="%{right.external_access == 1}">允许</s:if>
							<s:if test="%{right.external_access == 2}">不允许</s:if>
						</td>
					</tr>
					<tr>
						<th>是否控制子资源权限</th>
						<td>
							<s:if test="%{right.filter_subres == 1}">是</s:if>
							<s:if test="%{right.filter_subres == 2}">否</s:if>
						</td>
						<th>类型</th>
						<td>
							<s:if test="%{right.r_type == 1}">菜单</s:if>
							<s:if test="%{right.r_type == 2}">按钮</s:if>
						</td>
					</tr>
					<tr>
						<th>叶子节点</th>
						<td>
							<s:if test="%{right.is_leaf == 1}">是</s:if>
							<s:if test="%{right.is_leaf == 2}">否</s:if>
						</td>
						<th>当前状态</th>
						<td>
							<s:if test="%{right.r_status == 1}">启用</s:if>
							<s:if test="%{right.r_status == 2}">禁用</s:if>
						</td>
					</tr>
					<tr>
						<th>打开模式</th>
						<td>
							<s:if test="%{right.open_mode == 1}">弹出式</s:if>
							<s:elseif test="%{right.open_mode == 2}">非弹出式</s:elseif>
						</td>
						<s:if test="%{right.open_mode == 1}">
							<th>弹出框窗口宽高(W*H)(像素)</th>
							<td colspan="3">
								<s:property value="%{right.box_width }"/>(W)&nbsp;*&nbsp;
								<s:property value="%{right.box_height }"/>(H)(像素)
							</td>
						</s:if>
						<s:elseif test="%{right.open_mode == 2}">
							<th>&nbsp;</th>
							<td colspan="3">&nbsp;</td>
						</s:elseif>
					</tr>
					<tr>
						<th>访问地址编码(URL)</th>
						<td><s:property value="%{right.code }"/></td>
						<th>备注</th>
						<td><s:property value="%{right.remark }"/></td>
					</tr>
				</tbody>
			</table>
		</div>
		
		<div class="btns">
			<span class="btn">
				<input type="button" id="cancelBtn" value="返回" 
					onclick="javascript:window.history.back();"/>
			</span>
		</div>
</body>
</html>
